<HTML><HEAD><TITLE>sorted_list_to_dom(+List, -Dom)</TITLE>
</HEAD><BODY>[ <A HREF="index.html">library(fd)</A> | <A HREF="../../index.html">Reference Manual</A> | <A HREF="../../fullindex.html">Alphabetic Index</A> ]
<H1>sorted_list_to_dom(+List, -Dom)</H1>
Convert a sorted list of atomic terms and integer intervals into a domain
Dom.


<DL>
<DT><EM>+List</EM></DT>
<DD>A sorted list of atomic terms and integer interval.
</DD>
<DT><EM>-Dom</EM></DT>
<DD>Variable.
</DD>
</DL>
<H2>Description</H2>
   Convert a sorted list of atomic terms and integer intervals into a
   domain Dom.  List is assumed to be in the correct order and format for a
   finite domain.  If it is not, the program will not work correctly.  The
   purpose of this predicate is to quickly convert small lists to domains.

<P>

<H3>Fail Conditions</H3>
   None.


<H3>Resatisfiable</H3>
   No.
<H3>Exceptions</H3>
<DL>
<DT><EM>(4) instantiation fault </EM>
<DD>List is not ground.
<DT><EM>(5) type error </EM>
<DD>List contains an element which is neither atomic nor an    integer interval.
<DT><EM>(6) out of range </EM>
<DD>The size of the resulting domain is too large.
<DT><EM>(6) out of range </EM>
<DD>The lower bound of an integer interval is greater than its    upper bound.
</DL>
<H2>See Also</H2>
<A HREF="../../lib/fd/integer_list_to_dom-2.html">integer_list_to_dom / 2</A>, <A HREF="../../lib/fd/list_to_dom-2.html">list_to_dom / 2</A>, <A HREF="../../lib/fd/dvar_domain-2.html">dvar_domain / 2</A>
</BODY></HTML>
